From: Karl Palsson Date: Wed, 16 Aug 2017 14:54:08 +0000 (+0000) Subject: mosquitto: properly use localhost instead of ipv4 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=7fb33ad6b656855bdeeacb561ba313a951801bcb;p=feed%2Fpackages.git mosquitto: properly use localhost instead of ipv4 On some environments, connecting to localhost was resolving to ::1, which didn't match the bind to the explicit 127.0.0.1. Signed-off-by: Karl Palsson --- diff --git a/net/mosquitto/files/etc/init.d/mosquitto b/net/mosquitto/files/etc/init.d/mosquitto index dbe8d1518e..a84bceeaf9 100755 --- a/net/mosquitto/files/etc/init.d/mosquitto +++ b/net/mosquitto/files/etc/init.d/mosquitto @@ -56,7 +56,7 @@ convert_mosq_general() { config_get_bool no_remote "$1" no_remote_access 0 if [ "$no_remote" -eq 1 ]; then - echo "bind_address 127.0.0.1" >> $TCONF + echo "bind_address localhost" >> $TCONF fi config_get port "$1" port 1883